package com.shop.product.vo;

import java.util.ArrayList;
import java.util.List;


import lombok.Data;

public class ProductVO {
 
	@Data
	public static class ProductItem {
		private int seq;
		private String product_hash;
		private String product_name;
		private String product_desc;
		private int product_cnt;
		private int price;
		private String use_yn;
		private String event_yn;
		private String recomm_yn;
		private String popular_yn;
		private int prouct_cnt;
		private String reg_dt;
		private int admin_seq;
		private String tags;
		
		// 상품평
		private List<ProductComment> comment_list;
		
		// 이지미
		private List<ProductImg> img_list;
		
		// 태그 리스트
		private List<ProductTag> tag_list;
		
		// add용 태그 명
		private String[] tag_name;
		private String[] opt_master_seq;
		private String[] opt_desc;
		private String[] img_path;
		
		public ProductItem() {
			comment_list = new ArrayList<ProductVO.ProductComment>();
			img_list = new ArrayList<ProductVO.ProductImg>();
			tag_list = new ArrayList<ProductVO.ProductTag>();
		}
		
		public void addComment(ProductVO.ProductComment comment) {
			comment_list.add(comment);
		}
		public void addImg(ProductVO.ProductImg img) {
			img_list.add(img);
		}		
		public void addTag(ProductVO.ProductTag tag) {
			tag_list.add(tag);
		}
	}
	@Data
	public static class ProductComment {
		private int seq;
		private String comment;
		private int member_seq;
		private int product_seq;
		private String  reg_dt;
	}
	
	@Data
	public static class ProductImg {
		private int seq;
		private int product_seq;
		private String img_path;
		private int admin_seq;
		private String reg_dt;
		private String flag; // M이면 메인에 노출
	}
	
	@Data
	public static class ProductOptMaster {
		
		private int seq;
		private String opt_title;
		private String reg_dt;
		private int admin_seq;
		private String use_yn;
	}

	@Data
	public static class ProductOptDetail {
		private int seq;
		private int opt_master_seq;
		private int product_seq;
		private int admin_seq;
		private String opt_desc;
	}
	
	@Data
	public static class ProductTag {
		private int seq;
		private String tag_name;
		private String use_yn;
	}
}


